package site.teamo.biu.net.common.http_https_proxy;

import site.teamo.biu.net.common.constant.ConnectionType;
import site.teamo.biu.net.common.util.HostPort;

import java.util.LinkedList;

/**
 * @author haocongshun
 * @date 2023/03/16 16:33:45
 */
public class ConnectionState extends LinkedList<ConnectionState.Element> {

    public ConnectionState add(HostPort hostPort, ConnectionType connectionType, int connectionNum, long createTime) {
        this.add(new Element(hostPort, connectionType, connectionNum, createTime));
        return this;
    }


    public record Element(HostPort hostPort, ConnectionType connectionType, int connectionNum, long createTime) {
    }

}
